package com.aaa.module2

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import kotlinx.android.synthetic.main.activity_main2.*

@Route(path = "/modules/main2")
class Main2Activity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main2)

        initView()
    }

    private fun initView() {
        tv_1.setOnClickListener {
            ARouter.getInstance().build("/module3/main3").navigation()
        }
    }
}
